package util
{
	import mx.core.UIComponent;
	import mx.effects.Move;
	import mx.events.EffectEvent;

	public class Vibrate
	{
		/**
		 *
		 * @param displayObj
		 */
		public function Vibrate(displayObj:UIComponent)
		{
			this.displayObj=displayObj;
		}
		public var displayObj:UIComponent=new UIComponent();

		// micro vibrate
		public function microVibrate(x:Number, y:Number):void
		{
			var vibrator:Move=new Move(displayObj);
			vibrator.end();
			vibrator.duration=100;
			vibrator.xTo=x - 6;
			vibrator.repeatCount=2;
			vibrator.play(null, true);
		}
	}
}

